home *** CD-ROM | disk | FTP | other *** search
- Path: news.ind.mh.se!ing9435
- From: ing9435@ind.mh.se (Jimmy Westerlund)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Sliiy window question
- Date: 1 Feb 1996 10:49:40 GMT
- Organization: Mid Sweden University, Dept. of Industrial technology
- Message-ID: <slrn4h16lq.5rq.ing9435@xerxes.to.mh.se>
- References: <4enngd$e6h@news.kth.se>
- NNTP-Posting-Host: xerxes.ind.mh.se
- X-Newsreader: slrn (0.8.4)
-
- In article <4enngd$e6h@news.kth.se>, Johan Forsberg wrote:
- >How, exactly, do you calculate the position/size of the interior area of
- >a window?
-
- How about this...
-
- inner_width = window->width - (window->BorderRight + window->BorderLeft);
- inner_height= window->height- (window->BorderTop + window->BorderBottom);
-
- I think this will work fine...
-
- >
- >Johan
- >--
- > _ _ ____ _
- > _| |___| |_ __ __ _ | ___|__ _ _ __| |__ ___ _ _ ___
- >| | / _ | ' / _ | ' \ | _|/ _ | '_(__| '_ / _ | '_/ _ |
- >\___\___|_||\__,|_||_| |_| \___|_| |__|____\___|_| \__ |
- >A4000/040 *Better dead than MicroSoft!* C64 CDTV |__/
-
- /Jimmy Westerlund -- ing9435@ind.mh.se, or jimmy@eagle.ovik.se, or
- jimmy@linux.park.se.
-
-